# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html

import scrapy


class BookItem(scrapy.Item):
    '''
        图书信息封装类
        （图书id号，书名、详情页URL、图片URL、图片文件名、关键词、价格、作者、出版时间、出版社、评分和推荐）
    '''
    table = "book"    #表名

    #对应数据库字段的属性
    id = scrapy.Field() 
    title = scrapy.Field()
    url = scrapy.Field()
    pic = scrapy.Field()
    filename = scrapy.Field()
    keyword = scrapy.Field()
    price = scrapy.Field()
    author = scrapy.Field()
    pubtime = scrapy.Field()
    publisher = scrapy.Field()
    score = scrapy.Field()
    recommend = scrapy.Field()
		